﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true" CodeBehind="MyEvent.aspx.cs" Inherits="Event_SG_EWDT.MyEvent" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Userhead" runat="server">
<title>My Event</title>
	<!--<link href="GridviewCss.css" rel="stylesheet" type="text/css" />-->
	<link href="Styles/MyEvent.css" rel="stylesheet" type="text/css" />
	<link href="Styles/GridviewCss/gridview.css" rel="stylesheet" type="text/css" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="newHolder" runat="server">
	<p class="h1">
		My Events</p>
		<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
		</asp:ToolkitScriptManager>
	<div class="Div_myEvent_main">

	<p class="p">
	Upcoming Events
	</p>
		<asp:GridView ID="gvMyEvent" runat="server" 
			DataSourceID="odsMyEvent"
			AllowPaging="True"
			AutoGenerateColumns="False" 
			onselectedindexchanged="gvMyEvent_SelectedIndexChanged" 
			CssClass="mGrid"
			PagerStyle-CssClass="pgr"
			AlternatingRowStyle-CssClass="alt">
			
			<Columns>
				<asp:BoundField DataField="event_id" HeaderText="Event ID"  ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Center" />
				<asp:ButtonField CommandName="Select" DataTextField="event_title" 
					HeaderText="Event Title" Text="View Event"  ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center" />
				<asp:BoundField DataField="start_time" HeaderText="Start Time"  ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Center" />
				<asp:BoundField DataField="member_role" HeaderText="Role"  ItemStyle-Width="10px" ItemStyle-HorizontalAlign="Center" />
			</Columns>
		</asp:GridView>

		<asp:ObjectDataSource ID="odsMyEvent" runat="server" 
			SelectMethod="MyUpcomingEvent" TypeName="Event_SG_EWDT.DBQUERIES">
			<SelectParameters>
				<asp:SessionParameter DefaultValue="" Name="memberShip_no" 
					SessionField="Member" Type="String" />
			</SelectParameters>
		</asp:ObjectDataSource>
		
		<p class="p">Past Events</p>

		</div>


</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderUser" runat="server">
</asp:Content>
